home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Newswatcher 2.0b22 / NW Source / Source / glob.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  2.5 KB  |  58 lines  |  [TEXT/MMCC]

  1. /*----------------------------------------------------------------------------
  2.  
  3.     glob.c
  4.  
  5.     This file contains declarations for all the global variables.
  6.     
  7.     Copyright © 1994, Northwestern University.
  8.  
  9. ----------------------------------------------------------------------------*/
  10.  
  11. #include "glob.h"
  12.  
  13. TDispatch gDispatch[kNumWindowKind];    /* dispatch table */
  14.  
  15. short gNumGroups = 0;                    /* number of newsgroups */
  16. TGroup **gFullGroupArray = nil;            /* handle to full group array */
  17. Handle gGroupNames = nil;                /* handle to group name strings */
  18. WindowPtr gFullGroupWindow = nil;        /* pointer to full group list window */
  19. Boolean gFullGroupListDirty = false;    /* true if full group list dirty */
  20. Boolean gMustDoZoomOnShowFullGroupList = true;
  21.                                         /* true if full group list needs zooming */
  22.  
  23. TPrefRec gPrefs;                        /* preferences */
  24.  
  25. CStr255 gAutoFetchHost;                    /* autofetch host */
  26. CStr255 gAutoFetchUsername;                /* autofetch username */
  27. char gAutoFetchPassword[32];            /* autofetch password */
  28. char gAutoFetchPath[32];                /* autofetch path */
  29.  
  30. Boolean gDone = false;                    /* flag set true upon program termination */
  31. Boolean gCancel = false;                /* flag set when user cancels an action */
  32. Boolean gStartupOK = true;                /* true if no errors during startup */
  33. Boolean gStartingUp = true;                /* true during startup */
  34. extern Boolean gPrefsFileFoundAtStartup = false;    /* true if prefs file found during startup */
  35. Boolean gLongOperation = false;            /* true during long operations */
  36. Boolean gInDialog = false;                /* true while in dialog */
  37. Boolean gInBackground;                    /* background/foreground flag */
  38. Boolean gAEServer = false;                /* true while responding to Apple event */
  39. DialogPtr gMyCurDialog = nil;            /* pointer to NewsWatcher's current dialog
  40.                                             window, or nil if none */
  41. Rect gDesktopExtent;                    /* desktop extent */
  42. Cursor gIBeamCurs;                        /* ibeam cursor */
  43. Cursor gWatchCurs;                        /* watch cursor */
  44.  
  45. Boolean gHaveDragMgr;                    /* true if Drag Manager is available */
  46. OSErr (*gDragPostProcessor)(void) = nil;    /* pointer to drag and drop post-processing
  47.                                                function, or nil if none */
  48. OSErr gDragErr = noErr;                    /* Drag Manager handler error code. */
  49.  
  50. EventRecord gCurEvent = {0, 0, 0, {0, 0}, 0};                    
  51.                                         /* current event being handled */
  52. EventRecord gPrevEvent = {0, 0, 0, {0, 0}, 0};                    
  53.                                         /* previous event */
  54.  
  55. Boolean gHaveTEOutlineHilite;            /* true if TE outline hilight feature
  56.                                            is available */
  57.                                            
  58. CStr255 gFindPattern = "";                /* pattern for Find and Find Again commands */